import request from '@/utils/request'

// 编辑轮播图
export function editBanners(data) {
    return request({
        url: '/adminapi/banners/edit',
        method: 'post',
        data
    })
}
// 添加轮播图
export function addBanners(data) {
    return request({
        url: '/adminapi/banners/add',
        method: 'post',
        data
    })
}
// 删除轮播图
export function delBanners(data) {
    return request({
        url: '/adminapi/banners/del',
        method: 'post',
        data
    })
}
// 获取轮播图列表
export function getBannersList(data) {
    return request({
        url: '/adminapi/banners/list',
        method: 'post',
        data
    })
}